<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of imgview
 *
 * @author Алексей
 */
class imgview extends CWidget {
    public $urlprefix='/images/';
    public $file;
    public $classname;
    public $mode='img';
    public $width='';
    public $height='';
 
	public function run()
	{ 

            $this->urlprefix.=$this->classname.'/';
            	$this->render($this->mode, array(
                    'imgurl'=>$this->urlprefix,
                    'file'=>$this->file,
                    'width'=>$this->width,
                    'height'=>$this->height,
                    'classname'=>$this->classname
                ));
        }
}

?>
